import torchaudio

wav_list = [
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0035/BAC009S0035W0493.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0140/BAC009S0140W0210.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0136/BAC009S0136W0125.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0191/BAC009S0191W0240.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0218/BAC009S0218W0310.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0109/BAC009S0109W0336.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0045/BAC009S0045W0372.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0247/BAC009S0247W0381.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0348/BAC009S0348W0229.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0362/BAC009S0362W0297.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0245/BAC009S0245W0329.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0095/BAC009S0095W0459.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0141/BAC009S0141W0356.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0050/BAC009S0050W0205.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0153/BAC009S0153W0246.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0596/BAC009S0596W0235.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0007/BAC009S0007W0196.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0521/BAC009S0521W0334.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0356/BAC009S0356W0427.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0341/BAC009S0341W0296.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0095/BAC009S0095W0170.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0030/BAC009S0030W0263.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0708/BAC009S0708W0224.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0044/BAC009S0044W0361.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0598/BAC009S0598W0491.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0071/BAC009S0071W0129.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0097/BAC009S0097W0452.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0036/BAC009S0036W0442.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0115/BAC009S0115W0436.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0223/BAC009S0223W0213.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0343/BAC009S0343W0148.wav",
    "/root/autodl-tmp/data_aishell/data_aishell/wav/train/S0165/BAC009S0165W0345.wav",
]


for wav_path in wav_list:
    try:
        info = torchaudio.info(wav_path)
        sample_rate = torchaudio.info(wav_path).sample_rate
        print(f"Loaded info for {wav_path}: {info}")
    except Exception as e:
        print(f"Error loading {wav_path}: {e}")
